import {GETMOVIELIST} from '../constant/movieConst'
import {movieListRequest} from '../../api'
import store from '../store'
export const getMovieListAction =  ()=>{
  return async ()=>{
    const  re  = await  movieListRequest()
    store.dispatch({
      type:GETMOVIELIST,
      data:re.data.data.list
    })
  }


}